local hx__baoji = fk.CreateSkill {
  name = "hx__baoji",
}


hx__baoji:addEffect(fk.CardEffectCancelledOut, {
  anim_type = "offensive",
  can_trigger = function(self, event, target, player, data)
    return data.from == player and player:hasSkill(hx__baoji.name) and data.card.trueName == "slash" and not data.to.dead
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:loseHp(player, 1, self.name)
    data.isCancellOut = false
  end,
})


return hx__baoji